package design_patterns.command.entity;

/**
 * @author cz
 * @description 交易类
 * @create 2020-05-14 15:51
 */
public class Stock {
    private int stock=10;
    private String name="好吃的";

    public void buy(){
        System.out.println("买了"+stock+"个"+name);
    }

    public void sell(){
        System.out.println("卖了"+stock+"个"+name);
    }
}
